package com.usefullc.system.service;

import com.usefullc.system.service.component.SystemConfigComponent;
import com.usefullc.system.service.component.redis.SubPubMessage;
import com.usefullc.system.service.component.redis.SubPubMessageConsume;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: Sampson
 * @date: 2022-02-01 20:05
 */
@Service
public class MessageConsumeService implements SubPubMessageConsume {

    @Autowired
    private SystemConfigComponent systemConfigComponent;

    @Override
    public void consume(SubPubMessage subPubMessage) {
        if(!systemConfigComponent.getAppName().equals(subPubMessage.getAppName())){
            return;
        }


    }
}
